//package Final;
//
//import java.util.Objects;
//import java.util.Scanner;
//public class test13 {
//
//    public static void main(String[] args) {
//        Scanner s = new Scanner(System.in);
//        Book b1 = new Book(s.next(),
//                s.nextInt(),
//                s.next(),
//                s.nextInt());
//        Book b2 = new Book(s.next(),s.nextInt(),s.next(),s.nextInt());
//        System.out.println(b1);
//        System.out.println(b2);
//        System.out.println(b1.equals(b2));
//    }
//}
//
///* 你的代码被嵌在这里 */
//class Book{
//    String name;
//    int price;
//    String author;
//    int edition;
//    public Book(String name, int price, String author, int edition) {
//        this.name = name;
//        this.price = price;
//        this.author = author;
//        this.edition = edition;
//    }
//
//    public boolean equals(Book book) {
//        String n = book.name;
//        int p = book.price;
//        String a = book.author;
//        int e = book.edition;
//        if (name.equalsIgnoreCase(n) && author.equalsIgnoreCase(a) && edition == e){
//            return true;
//        }
//        return false;
//    }
//    public String toString() {
//        return "name: " + name + ", price: " + price + ", author: " + author + ", edition: " + edition;
//    }
//}